/*
 * Universe.h
 *
 *  Created on: 05.06.2012
 *      Author: sebastian
 */

#ifndef UNIVERSE_H_
#define UNIVERSE_H_

#include <pthread.h>

class Universe {  //TODO: mark as singleton...
private:
	pthread_t thread_;

	bool isRunning_;
	void start();

	void doStep();
public:

	static void* run(void* u);

	void stop();
	Universe();
	virtual ~Universe();
};

#endif /* UNIVERSE_H_ */
